<?php
/**
 * LilFloatTest file
 *
 */
App::import('Helper', 'LilFloat.LilFloat');

/**
 * LilFloatTestHelper class
 *
 */
class LilFloatTestHelper extends LilFloatHelper {

}

/**
 * LilUploadBehaviorTest class
 *
 * @package       lil
 * @subpackage    lil.tests.cases.libs.model.lil_upload
 */
class LilFloatHelperTest extends CakeTestCase {
/**
 * testLilUploadEmptyUploadedFile method
 *
 * @access public
 * @return void
 */
	function testLilHelperFormat() {
		$Helper = new LilFloatTestHelper();
		Configure::write('LilFloat.decimalSeparator', ',');
		Configure::write('LilFloat.thousandsSeparator', ' ');
		
		$result = $Helper->format('1234.56', 2);
		$expected = '1 234,56';
		
		$this->assertEqual($result, $expected);
	}
}